/* eslint-disable semi */
/* eslint-disable semi */
/* eslint-disable quotes */
<template>
  <van-pull-refresh v-model="isLoading">
    <div class="TopList">
      <router-link to="/HamDivision">
        <van-icon class="Backlink" name="arrow-left" />
      </router-link>

      <div class="TopList-span">
        <span> 账户设置 </span>

      </div>

    </div>

    <div class="shadow"> </div>

    <div class="Area-3">
      <div class="Area-3-div" @click="gotolink(0)">
        <div class="Area-3-div-left">

          <van-icon class="Ares-3-icon" name="phone-circle" />
          <span class="Ares-3-span">手机号码</span>
        </div>
        <div class="Area-3-div-right-1">
          <span class="Area-3-div-right-icon-1">185****9755</span>

        </div>
      </div>
      <div class="Area-3-div" @click="gotolink(1)">
        <div class="Area-3-div-left">
          <van-icon class="Ares-3-icon" name="lock" />
          <span class="Ares-3-span">重置密码</span>
        </div>
        <div class="Area-3-div-right">
          <van-icon class="Area-3-div-right-icon" name="arrow" />
        </div>
      </div>
      <div class="Area-3-div" @click="gotolink(2)">
        <div class="Area-3-div-left">
          <van-icon class="Ares-3-icon" name="manager" />
          <span class="Ares-3-span">实名认证</span>
        </div>
        <div class="Area-3-div-right">
          <van-icon class="Area-3-div-right-icon" name="arrow" />
        </div>
      </div>
      <div class="Area-3-div" @click="gotolink(3)">
        <div class="Area-3-div-left">
          <van-icon class="Ares-3-icon" name="bill" />
          <span class="Ares-3-span">提现账户</span>
        </div>
        <div class="Area-3-div-right">
          <van-icon class="Area-3-div-right-icon" name="arrow" />
        </div>
      </div>

      <div class="Area-3-div" @click="gotolink(4)">
        <div class="Area-3-div-left">
          <van-icon class="Ares-3-icon" name="location" />
          <span class="Ares-3-span">地址管理</span>
        </div>
        <div class="Area-3-div-right">
          <van-icon class="Area-3-div-right-icon" name="arrow" />
        </div>
      </div>
    </div>

    <div class="lastadd">

      <van-button class="add-button" color="#41D08C" round type="info" @click="backto()">退出登录</van-button>

    </div>
  </van-pull-refresh>
</template>

<script>
import TabBar from "./TabBar.vue";
import https from "./https.js";
//引入封装好的js方法
import { _debounce, _throttle } from "./untils.js";

//引入其他子组件
export default {
  components: {
    TabBar
  },
  // eslint-disable-next-line space-before-function-paren
  data() {
    return {
      count: 0,
      isLoading: false,
      index: 0,
      message: "",
      bannerimages: [
        { id: 0, imgSrc: require("../assets/images/a16.jpg") }
        // { id: 1, imgSrc: require("../assets/images/a18.jpg") }
      ],
      middleimages: [{ id: 0, imgSrc: require("../assets/images/none.png") }]
    };
  },

  mounted() {
    // 上拉加载
  },
  // eslint-disable-next-line space-before-function-paren
  // created:vue生命周期中的钩子函数，在这个时间点，data中的数据已经注入到响应式系统中
  created() {},

  methods: {
    afterRead(file) {
      // 此时可以自行将文件上传至服务器
      console.log(file);
    },

    gotolink(id) {
      if (id == 1) {
        this.$router.push({ path: "/Forget" });
      } else if (id == 2) {
        this.$router.push({ path: "/Autonym" });
      } else if (id == 3) {
        this.$router.push({ path: "/CashAccount" });
      } else if (id == 4) {
        this.$router.push({ path: "/Address" });
      }
    },
    //弹出提示
    showNumber() {
      this.$toast({
        message: "字数不能超过200个"
      });
    },
    backto() {
      this.$router.push({ path: "/HamDivision" });
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
/* //自定义.css的样式路径 */
/* @import "../css/HomePage.css"; */

* {
  padding: 0;
  margin: 0;
}
body {
  background-color: #f6f6f6;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: 0;
  display: block;
}
div {
  display: block;
  box-sizing: border-box;
}
.shadow {
  height: 8px;
  width: 100%;
  background: #f6f6f6;
}

.TopList {
  display: flex;
  width: 100%;
  height: 50px;
  font-size: 20px;
  text-align: left;
  background: #ffffff;
  line-height: 50px;
}
.Backlink {
  margin-top: 15px;
  margin-left: 15px;
  color: #888;
}
.TopList-span {
  display: flex;
  height: 20px;
  margin-top: 0px;
  margin-left: 110px;
  font-size: 16px;
  width: 60%;
}

.Area-3 {
  padding-left: 3%;
  background: #fff;
}
.Area-3-div {
  height: 50px;
  display: flex;
  flex-flow: row nowrap;
  align-content: space-between;
  padding-top: 15px;
  border-bottom: 1px solid #f6f6f6;
}
.Area-3-div-left {
  height: 35px;
  width: 108px;
  display: flex;
  flex-flow: row nowrap;
}
.Ares-3-icon {
  color: #41d08c;
  font-size: 22px;
}
.Ares-3-span {
  color: #333;
  font-size: 15px;
  margin-left: 14px;
}
.Area-3-div-right {
  width: 20%;
  height: 35px;
  padding-left: 63%;
  padding-right: 2%;
  flex-flow: row nowrap;
}
.Area-3-div-right-icon {
  color: silver;
  font-size: 16px;
}

.Area-3-div-right-1 {
  width: 20%;
  height: 35px;
  padding-left: 43%;
  padding-right: 2%;
  flex-flow: row nowrap;
  color: #41d08c;
  font-size: 16px;
}

.Area-3-div-right-icon-1 {
  color: silver;
  font-size: 16px;
  color: #41d08c;
}

.lastadd {
  background: #fff;
  width: 100%;
  padding: 30px 6% 0;
}
.add-button {
  width: 100%;
  font-size: 16px;
  letter-spacing: 1px;
  height: 42px;
  line-height: 42px;
}
</style>
